package com.hqyj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.exception.UserInfoException;
import com.hqyj.pojo.UserInfo;

import java.util.HashMap;
import java.util.List;

/**
 * 项目:demo-springboot-230701
 * 描述:
 * 时间:2023/9/26 10:41
 * 作者:admin
 * 版本:1.0
 **/
public interface UserInfoService extends  IService<UserInfo>{
    //新增
    HashMap<String,Object> add(UserInfo userInfo) throws UserInfoException;
    //修改
    HashMap<String,Object> update(UserInfo userInfo);
    //删除
    HashMap<String,Object> del(Integer id);
    //查询
    HashMap<String,Object> search(UserInfo userInfo);
    //批量新增
    HashMap<String,Object> addBitch(List<UserInfo> list);
    //批量修改
    HashMap<String,Object> updateBitch(List<UserInfo> list);
    //批量删除
    HashMap<String,Object> delBitch(List<Integer> list);
    //批量查询
    HashMap<String,Object> searchBitch(List<Integer> list);

    //动态查询
    HashMap<String,Object> searchByCondition(UserInfo userInfo);
    //分页查询查询
    HashMap<String,Object> searchPage(UserInfo userInfo);
    //邮件发送
    HashMap<String,Object> emailSend(String toEmail,String title,String content);
    //短信发送
    HashMap<String,Object> smsSend(String tel);
    //登录
    HashMap<String,Object> login(UserInfo userInfo);
}
